Tootsville::Infinity-Set-Furniture

Function

Infinity-Set-Furniture names a function, with lambda list (D USER RECIPIENT/S):

Set or change a furniture item.

Lisp SET-FURNITURE = JSON setFurniture

There are 3 distinct forms in which this command can be used.

item
To add a piece of furniture to the area, send a packet with the following data:
item
The item's class number --- WRITEME @dots{} You must have an item of this type in your inventory.
x, y, z
The position at which to place the item
facing
The angle (in radians) of the facing of this item. Alternatively, for backward compatibility with 1.2, the facing direction can be specified as N, NE, E, SE, S, SW, W, or NW (case-insensitive).
slot
To position or reposition a particular item by its UUID, send a packet like:
slot
The item's UUID. This item must be in your inventory.
x, y, z
The position at which to (re)position the item
facing
The angle (in radians) of the facing of this item. Alternatively, for backward compatibility with 1.2, the facing direction can be specified as N, NE, E, SE, S, SW, W, or NW (case-insensitive).
remove
Remove a furniture item from the scene, putting it back into your inventory. The packet keys will look like:
remove
This value must be true.
slot
The UUID of the item to remove from the scene.

Romance 1.2 instructions

To add a structural item to the room, put item: 123 without anything else. To place furniture on the floor, also add attributes x, y, and facing.

To change furniture, replace item: with slot: (to avoid ambiguities about “which chair”)

To remove an item from the room, send @{ slot: 123, remove: true @}

Parameters:

jso - @{ slot: #, x: #, y: #, facing: $ @} or @{ item: #, x: #, y: #, facing: $ @} or @{ slot: #, remove: true @}

u - The user calling this method

room - The room in which this user is standing

Changes from 1.2 to 2.0

200 OK

WRIETME

400 Error in parameters

This error is thrown if the parameters are not in one of ; the accepted formats

WRITEME

File

Defined in file src/infinity/legacy-commands.lisp.